import {Component, OnInit} from '@angular/core';
import {WorkStatusService} from '../../../services/news/WorkStatus/work-status.service';
import {WorkStatus} from '../../../services/news/momain/work-status';
import {Observable} from 'rxjs/Observable';

@Component({
  selector: 'app-work-dynamics',
  templateUrl: './work-dynamics.component.html',
  styleUrls: ['./work-dynamics.component.less']
})
export class WorkDynamicsComponent implements OnInit {

  workStatus: Observable<WorkStatus[]>;

  constructor(private workStatusService: WorkStatusService) {
  }

  ngOnInit() {
    this.workStatus = this.workStatusService.getList();
  }

}
